﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014DF RID: 5343
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpgradeAreaStatScRsp : IMessage<UpgradeAreaStatScRsp>, IMessage, IEquatable<UpgradeAreaStatScRsp>, IDeepCloneable<UpgradeAreaStatScRsp>, IBufferMessage
	{
		// Token: 0x17004341 RID: 17217
		// (get) Token: 0x0600EEF5 RID: 61173 RVA: 0x0027E15F File Offset: 0x0027C35F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpgradeAreaStatScRsp> Parser
		{
			get
			{
				return UpgradeAreaStatScRsp._parser;
			}
		}

		// Token: 0x17004342 RID: 17218
		// (get) Token: 0x0600EEF6 RID: 61174 RVA: 0x0027E166 File Offset: 0x0027C366
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpgradeAreaStatScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004343 RID: 17219
		// (get) Token: 0x0600EEF7 RID: 61175 RVA: 0x0027E178 File Offset: 0x0027C378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpgradeAreaStatScRsp.Descriptor;
			}
		}

		// Token: 0x0600EEF8 RID: 61176 RVA: 0x0027E17F File Offset: 0x0027C37F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatScRsp()
		{
		}

		// Token: 0x0600EEF9 RID: 61177 RVA: 0x0027E188 File Offset: 0x0027C388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatScRsp(UpgradeAreaStatScRsp other) : this()
		{
			this.areaId_ = other.areaId_;
			this.level_ = other.level_;
			this.iHLDLJGDCBL_ = other.iHLDLJGDCBL_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EEFA RID: 61178 RVA: 0x0027E1DC File Offset: 0x0027C3DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatScRsp Clone()
		{
			return new UpgradeAreaStatScRsp(this);
		}

		// Token: 0x17004344 RID: 17220
		// (get) Token: 0x0600EEFB RID: 61179 RVA: 0x0027E1E4 File Offset: 0x0027C3E4
		// (set) Token: 0x0600EEFC RID: 61180 RVA: 0x0027E1EC File Offset: 0x0027C3EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17004345 RID: 17221
		// (get) Token: 0x0600EEFD RID: 61181 RVA: 0x0027E1F5 File Offset: 0x0027C3F5
		// (set) Token: 0x0600EEFE RID: 61182 RVA: 0x0027E1FD File Offset: 0x0027C3FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17004346 RID: 17222
		// (get) Token: 0x0600EEFF RID: 61183 RVA: 0x0027E206 File Offset: 0x0027C406
		// (set) Token: 0x0600EF00 RID: 61184 RVA: 0x0027E20E File Offset: 0x0027C40E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StatType IHLDLJGDCBL
		{
			get
			{
				return this.iHLDLJGDCBL_;
			}
			set
			{
				this.iHLDLJGDCBL_ = value;
			}
		}

		// Token: 0x17004347 RID: 17223
		// (get) Token: 0x0600EF01 RID: 61185 RVA: 0x0027E217 File Offset: 0x0027C417
		// (set) Token: 0x0600EF02 RID: 61186 RVA: 0x0027E21F File Offset: 0x0027C41F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EF03 RID: 61187 RVA: 0x0027E228 File Offset: 0x0027C428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpgradeAreaStatScRsp);
		}

		// Token: 0x0600EF04 RID: 61188 RVA: 0x0027E238 File Offset: 0x0027C438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpgradeAreaStatScRsp other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.Level == other.Level && this.IHLDLJGDCBL == other.IHLDLJGDCBL && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EF05 RID: 61189 RVA: 0x0027E2A4 File Offset: 0x0027C4A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				num ^= this.IHLDLJGDCBL.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EF06 RID: 61190 RVA: 0x0027E334 File Offset: 0x0027C534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EF07 RID: 61191 RVA: 0x0027E33C File Offset: 0x0027C53C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EF08 RID: 61192 RVA: 0x0027E348 File Offset: 0x0027C548
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.AreaId);
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.IHLDLJGDCBL);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Level);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EF09 RID: 61193 RVA: 0x0027E3DC File Offset: 0x0027C5DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.IHLDLJGDCBL);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EF0A RID: 61194 RVA: 0x0027E464 File Offset: 0x0027C664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpgradeAreaStatScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.IHLDLJGDCBL != StatType.None)
			{
				this.IHLDLJGDCBL = other.IHLDLJGDCBL;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EF0B RID: 61195 RVA: 0x0027E4DC File Offset: 0x0027C6DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EF0C RID: 61196 RVA: 0x0027E4E8 File Offset: 0x0027C6E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 40U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.IHLDLJGDCBL = (StatType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005E69 RID: 24169
		private static readonly MessageParser<UpgradeAreaStatScRsp> _parser = new MessageParser<UpgradeAreaStatScRsp>(() => new UpgradeAreaStatScRsp());

		// Token: 0x04005E6A RID: 24170
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E6B RID: 24171
		public const int AreaIdFieldNumber = 5;

		// Token: 0x04005E6C RID: 24172
		private uint areaId_;

		// Token: 0x04005E6D RID: 24173
		public const int LevelFieldNumber = 7;

		// Token: 0x04005E6E RID: 24174
		private uint level_;

		// Token: 0x04005E6F RID: 24175
		public const int IHLDLJGDCBLFieldNumber = 6;

		// Token: 0x04005E70 RID: 24176
		private StatType iHLDLJGDCBL_;

		// Token: 0x04005E71 RID: 24177
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005E72 RID: 24178
		private uint retcode_;
	}
}
